package com.bwie.service;

import com.bwie.bean.Receiving;
import com.bwie.bean.User;
import com.bwie.bean.Zmark;
import com.bwie.dao.ReceivingDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ReceivingServiceImpl implements ReceivingService {
    @Autowired
    ReceivingDao receivingDao;


    @Override
    public List<Receiving> list(Map map) {
        return receivingDao.list(map);
    }

    @Override
    public List<Zmark> listZmark() {
        return receivingDao.listZmark();
    }

    @Override
    public int addGly(Receiving receiving) {
        return receivingDao.addGly(receiving);
    }

    @Override
    public int updateByRid(Integer rid) {
        return receivingDao.updateByRid(rid);
    }

    @Override
    public User listUser(User user) {
        return receivingDao.listUser(user);
    }

    @Override
    public List<Receiving> listStu(String uname) {
        return receivingDao.listStu(uname);
    }
}
